0bf587c6ba616d49ca060041324ec1b4833255e4,xwiki-platform-core/xwiki-platform-wikistream/xwiki-platform-wikistream-instance/xwiki-platform-wikistream-instance-oldcore/src/main/java/org/xwiki/wikistream/instance/internal/output/DocumentInstanceOutputWikiStream.java,DocumentInstanceOutputWikiStream,endWikiDocumentRevision,#String#FilterEventParameters#,137

Before Change


            // Versions and save document

            // Don't preserve version or history if we don't delete the previous document
            if (document.isNew() && this.properties.isVersionPreserved()) {
                document.setMetaDataDirty(false);
                document.setContentDirty(false);

After Change


            }

            // Save history
            if (document.isNew() && document.getDocumentArchive() != null) {
                // we need to force the saving the document archive
                if (document.getDocumentArchive() != null) {
                    xcontext.getWiki().getVersioningStore()